<table class="table" id="ajaxSelector">
    <thead>
        <tr>
            <th> <g:message code="serie.disciplinas.disponiveis.label" default="Disciplinas Disponiveis" /></th>
            <th> <g:message code="serie.disciplinas.selecionadas.label" default="Disciplinas Selecionadas" /></th>
        </tr>
    </thead>
    <tbody>
        <tr >
            <td>
                <g:each  in="${sige.Disciplina.list() - contains}" var="n">
                    <g:remoteLink action="addDisciplina" id="${n.id}" update="ajaxSelector"
                                  params="['contains': contains?.collect{it.id} ]" >
                        <div> <span class="label label-warning">${n.nome}</span> </div>
                    </g:remoteLink>
                </g:each>
            </td>

            <td>
                <g:each  in="${contains}" var="c">
                    <g:remoteLink action="delDisciplina" id="${c.id}" update="ajaxSelector"
                                  params="['contains': contains?.collect{it.id} ]" >
                        <div>
                          <span class="label label-success">${c?.nome}</span>
                          <g:hiddenField name="diciplinas.id" value="${c?.id}" />
                        </div>  
                    </g:remoteLink>
                </g:each>
            </td>
        </tr>
    </tbody>
</table>